'use strict';

const express = require('express');
const merchantController = require('../../app/controllers/merchant.server.controller');
const foodAdsController = require('../../app/controllers/foodAds.server.controller');
module.exports = (app) => {
    app.route('/merchantRegister')
    .post(merchantController.merchantRegister);
    app.route('/getMerchantByLogin')
    .get(merchantController.getMerchantByLogin);
    app.route('/getMerchantByIcnum/:icnum')
    .get(merchantController.getMerchantByIcnum);
    app.route('/merchantUpdate')
    .post(merchantController.merchantUpdate);
    app.route('/findAds')
    .get(foodAdsController.findAds);
    

};